<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="format-detection" content="telephone=no, email=no">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="full-screen" content="yes">
    <meta name="browsermode" content="application">
    <meta name="screen-orientation" content="portrait">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>支付成功</title>
    <link href="../Public/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <style type="text/css">
        * {
            font-family: "微软雅黑", "宋体", Arial;
        }
        p, h1, h2, h3, h4, h5, h6 {
            padding: 0;
            margin: 0;
        }
        body,html{
            width: 100%;
            height: 100%;
        }
        html {
            min-width: 320px;
        }
        #header {
            background: rgba(12, 175, 213, 0.82);
            text-align: center;
            color: white;
            line-height: 50px;
            height: 50px;
            margin: 0;
            font-size: 1.6em;
        }
        #submit {
            margin: 5px 0;
            width: 100%;
            background: rgba(12, 175, 213, 0.82);
            color: white;
            font-size: 1.2em;
        }
        #container h5{
            line-height: 20px;
            text-indent: 2em;
            margin-top: 5px;
        }
        #map{
            width: 100%;
            height: 80%;
            padding-top: 60px;
        }
        @media screen and (max-width: 440px) {
            #map{
                padding-top: 30%;
            }
        }
        #map img{
            max-height: 100%;
        }
        .modal{
            padding: 20vh 10%;
        }
        .modal-dialog,.modal-content{
            width: 100%;
            height: 100%;
            margin: 0;
            text-align: center;
        }
        .modal-body{
            width: 100%;
            height: calc(100% - 56px);
            text-align: center;
        }
        canvas{
            max-height: 100%;
            max-width: 100%;
        }
    </style>
</head>
<body>
<header id="header" class="navbar navbar-fixed-top">CloudParking</header>
<div id="map">
    <img class="img-responsive center-block" src="../Public/img/map.jpg">
</div>
<div class="container" id="container">
    <h5>支付成功！请按照指示在十五分钟内到达指定出口，若超过规定时间则需要支付一定违规金额。</h5>
    <button class="btn" id="submit" type="button"  data-toggle="modal" data-target="#myModal">查看二维码</button>
</div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document" >
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">停车场出口二维码</h4>
            </div>
            <div class="modal-body" id="二维码" onclick="window.location.href='account_finish.html'"></div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="../Public/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="../Public/bootstrap/dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=OWHeZN448651PTZxqwM2785x"></script>
<script type="text/javascript" src="../Public/js/jquery.qrcode.min.js"></script>

<script type="text/javascript">
</script>
<script type="text/javascript">

    <!-- 二维码-->
    $('.modal-body').qrcode({text: "http://tfwcn.changeip.net:8889/View/"});


</script>
</html>